package tt.com.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 订单项目表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "yx_funeral_order_project")
public class OrderProject {
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @TableField(value = "order_id")
    private String orderId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user_id")
    private String createUserId;

    /**
     * 最后修改时间
     */
    @TableField(value = "last_update_time")
    private Date lastUpdateTime;

    /**
     * 最后修改人
     */
    @TableField(value = "last_update_user_id")
    private String lastUpdateUserId;

    /**
     * 删除时间
     */
    @TableField(value = "delete_time")
    private Date deleteTime;

    /**
     * 删除人
     */
    @TableField(value = "delete_user_id")
    private String deleteUserId;

    /**
     * 删除状态(0删除 1正常)
     */
    @TableField(value = "data_status")
    private Integer dataStatus;

    /**
     * 组织id
     */
    @TableField(value = "organ_id")
    private String organId;

    /**
     * 项目id（服务供应商ID）
     */
    @TableField(value = "project_id")
    private String projectId;

    /**
     * 数量
     */
    @TableField(value = "`count`")
    private BigDecimal count;

    /**
     * 实付金额
     */
    @TableField(value = "paid_amount")
    private BigDecimal paidAmount;

    /**
     * 惠民减免
     */
    @TableField(value = "subsidies_amount")
    private BigDecimal subsidiesAmount;

    /**
     * 优惠减免
     */
    @TableField(value = "discount_amount")
    private BigDecimal discountAmount;

    /**
     * 物品备注
     */
    @TableField(value = "`comment`")
    private String comment;

    /**
     * 总金额
     */
    @TableField(value = "cost")
    private BigDecimal cost;

    /**
     * 成本单价
     */
    @TableField(value = "cost_price")
    private BigDecimal costPrice;

    /**
     * 服务价格单位
     */
    @TableField(value = "serve_price_unit")
    private String servePriceUnit;

    /**
     * 服务名称
     */
    @TableField(value = "serve_name")
    private String serveName;

    public static final String COL_ID = "id";

    public static final String COL_ORDER_ID = "order_id";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_CREATE_USER_ID = "create_user_id";

    public static final String COL_LAST_UPDATE_TIME = "last_update_time";

    public static final String COL_LAST_UPDATE_USER_ID = "last_update_user_id";

    public static final String COL_DELETE_TIME = "delete_time";

    public static final String COL_DELETE_USER_ID = "delete_user_id";

    public static final String COL_DATA_STATUS = "data_status";

    public static final String COL_ORGAN_ID = "organ_id";

    public static final String COL_PROJECT_ID = "project_id";

    public static final String COL_COUNT = "count";

    public static final String COL_PAID_AMOUNT = "paid_amount";

    public static final String COL_SUBSIDIES_AMOUNT = "subsidies_amount";

    public static final String COL_DISCOUNT_AMOUNT = "discount_amount";

    public static final String COL_COMMENT = "comment";

    public static final String COL_COST = "cost";

    public static final String COL_COST_PRICE = "cost_price";

    public static final String COL_SERVE_PRICE_UNIT = "serve_price_unit";

    public static final String COL_SERVE_NAME = "serve_name";
}